package com.hjt.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author:97007
 * @date:2021/9/28 13:31
 */
@Configuration
public class GulimallWebConfig  implements WebMvcConfigurer {

    /**
     * 配置视图映射
     * @param registry
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

        registry.addViewController("/register.html").setViewName("register");
    }
}
